package jpa.entitys.synchro.staging;

import java.io.Serializable;

import javax.persistence.*;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the MM_GP_OUTB database table.
 * 
 */
@Entity
@Table(name="MM_GP_OUTB")
@NamedQueries({
    @NamedQuery(name = "MmGpOutb.findAll", query = " SELECT c FROM MmGpOutb c "),
    @NamedQuery(name = "MmGpOutb.findById", query = " SELECT c FROM MmGpOutb c WHERE c.promisStagingId = :Id "),
    @NamedQuery(name = "MmGpOutb.findByInstanceNo", query = " SELECT c FROM MmGpOutb c WHERE c.instanceNo = :instanceNo "),
    @NamedQuery(name = "MmGpOutb.findAllIsSync", query = " SELECT c FROM MmGpOutb c WHERE c.issync = :issync order by c.instanceNo,c.promisGpDocNo asc"),
    @NamedQuery(name = "MmGpOutb.findByDocumentNo", query = " SELECT c FROM MmGpOutb c WHERE c.company = :company And c.project = :project And c.promisGpDocNo = :promisGpDocNo And c.status = :status And c.issync = :issync order by c.instanceNo,c.status asc")    
    })
public class MmGpOutb extends jpa.entitys.synchro.common.CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="PROMIS_STAGING_ID")
	private String promisStagingId;
	
	@Override public String toString() { return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(this);}

	@Column(name="ACTION_HANDLER")
	private String actionHandler;

	@Column(name="ARTICEL_DESCRIPTION")
	private String articelDescription;

	private String company;

	@Column(name="CREATED_BY")
	private String createdBy;

	@Column(name="CREATED_ON")
	private String createdOn;

	@Column(name="DEL_IND")
	private String delInd;

	@Column(name="EXT_REF_KEY")
	private String extRefKey;

	@Column(name="EXT_REF_NO")
	private String extRefNo;

	@Column(name="EXTERNAL_PO_LINE_ITEM")
	private String externalPoLineItem;

	@Column(name="EXTERNAL_PO_NO")
	private String externalPoNo;

	@Column(name="GP_DATE")
	private String gpDate;

	@Column(name="GP_DETAIL")
	private String gpDetail;

	@Column(name="GP_NO")
	private BigDecimal gpNo;

	@Column(name="GP_SERIES")
	private String gpSeries;

	@Column(name="GP_TYPE")
	private String gpType;

	@Column(name="INSTANCE_NO")
	private String instanceNo;

	private String isactive;

	private String issync;

	@Column(name="ITEM_CODE")
	private String itemCode;

	@Column(name="ITEM_UM")
	private String itemUm;

	@Column(name="ITEM_UM_QTY")
	private String itemUmQty;

	@Column(name="MSG_ACT_RESULT")
	private String msgActResult;

	@Column(name="MSG_ALT_DESC")
	private String msgAltDesc;

	@Column(name="MSG_CODE")
	private String msgCode;

	@Column(name="MSG_DESC")
	private String msgDesc;

	@Column(name="PO_DATE")
	private String poDate;

	@Column(name="PO_NO")
	private BigDecimal poNo;

	@Column(name="PO_REVISION_NO")
	private Long poRevisionNo;

	@Column(name="PO_SEQ")
	private BigDecimal poSeq;

	@Column(name="PO_SERIES")
	private String poSeries;

	@Column(name="PO_TYPE")
	private String poType;

	@Column(name="PREPARED_BY")
	private String preparedBy;

	private String project;

	@Column(name="PROMIS_GP_DOC_NO")
	private String promisGpDocNo;

	private String remarks;

	@Column(name="SAP_COMPANY_CODE")
	private String sapCompanyCode;

	@Column(name="SAP_PLANT_CODE")
	private String sapPlantCode;

	private String status;

	@Column(name="SUPPLIER_CODE")
	private String supplierCode;

	@Column(name="SUPPLIER_DO_DATE")
	private String supplierDoDate;

	@Column(name="SUPPLIER_DO_NO")
	private String supplierDoNo;

	@Column(name="SYNC_CREATEDBY")
	private String syncCreatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_CREATEDON")
	private Date syncCreatedon;

	@Column(name="SYNC_UPDATEDBY")
	private String syncUpdatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_UPDATEDON")
	private Date syncUpdatedon;

	@Column(name="UPDATED_BY")
	private String updatedBy;

	@Column(name="UPDATED_ON")
	private String updatedOn;
	
	@Column(name="INTERFACE_NO", length=100)
	private String interfaceNo;	
	
    /**
	 * @return the interfaceNo
	 */
	public String getInterfaceNo() {
		return interfaceNo;
	}

	/**
	 * @param interfaceNo the interfaceNo to set
	 */
	public void setInterfaceNo(String interfaceNo) {
		this.interfaceNo = interfaceNo;
	}

    public MmGpOutb() {
    }

	public String getPromisStagingId() {
		return this.promisStagingId;
	}

	public void setPromisStagingId(String promisStagingId) {
		this.promisStagingId = promisStagingId;
	}

	public String getActionHandler() {
		return this.actionHandler;
	}

	public void setActionHandler(String actionHandler) {
		this.actionHandler = actionHandler;
	}

	public String getArticelDescription() {
		return this.articelDescription;
	}

	public void setArticelDescription(String articelDescription) {
		this.articelDescription = articelDescription;
	}

	public String getCompany() {
		return this.company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(String createdOn) {
		this.createdOn = createdOn;
	}

	public String getDelInd() {
		return this.delInd;
	}

	public void setDelInd(String delInd) {
		this.delInd = delInd;
	}

	public String getExtRefKey() {
		return this.extRefKey;
	}

	public void setExtRefKey(String extRefKey) {
		this.extRefKey = extRefKey;
	}

	public String getExtRefNo() {
		return this.extRefNo;
	}

	public void setExtRefNo(String extRefNo) {
		this.extRefNo = extRefNo;
	}

	public String getExternalPoLineItem() {
		return this.externalPoLineItem;
	}

	public void setExternalPoLineItem(String externalPoLineItem) {
		this.externalPoLineItem = externalPoLineItem;
	}

	public String getExternalPoNo() {
		return this.externalPoNo;
	}

	public void setExternalPoNo(String externalPoNo) {
		this.externalPoNo = externalPoNo;
	}

	public String getGpDate() {
		return this.gpDate;
	}

	public void setGpDate(String gpDate) {
		this.gpDate = gpDate;
	}

	public String getGpDetail() {
		return this.gpDetail;
	}

	public void setGpDetail(String gpDetail) {
		this.gpDetail = gpDetail;
	}

	public BigDecimal getGpNo() {
		return this.gpNo;
	}

	public void setGpNo(BigDecimal gpNo) {
		this.gpNo = gpNo;
	}

	public String getGpSeries() {
		return this.gpSeries;
	}

	public void setGpSeries(String gpSeries) {
		this.gpSeries = gpSeries;
	}

	public String getGpType() {
		return this.gpType;
	}

	public void setGpType(String gpType) {
		this.gpType = gpType;
	}

	public String getInstanceNo() {
		return this.instanceNo;
	}

	public void setInstanceNo(String instanceNo) {
		this.instanceNo = instanceNo;
	}

	public String getIsactive() {
		return this.isactive;
	}

	public void setIsactive(String isactive) {
		this.isactive = isactive;
	}

	public String getIssync() {
		return this.issync;
	}

	public void setIssync(String issync) {
		this.issync = issync;
	}

	public String getItemCode() {
		return this.itemCode;
	}

	public void setItemCode(String itemCode) {
		this.itemCode = itemCode;
	}

	public String getItemUm() {
		return this.itemUm;
	}

	public void setItemUm(String itemUm) {
		this.itemUm = itemUm;
	}

	public String getItemUmQty() {
		return this.itemUmQty;
	}

	public void setItemUmQty(String itemUmQty) {
		this.itemUmQty = itemUmQty;
	}

	public String getMsgActResult() {
		return this.msgActResult;
	}

	public void setMsgActResult(String msgActResult) {
		this.msgActResult = msgActResult;
	}

	public String getMsgAltDesc() {
		return this.msgAltDesc;
	}

	public void setMsgAltDesc(String msgAltDesc) {
		this.msgAltDesc = msgAltDesc;
	}

	public String getMsgCode() {
		return this.msgCode;
	}

	public void setMsgCode(String msgCode) {
		this.msgCode = msgCode;
	}

	public String getMsgDesc() {
		return this.msgDesc;
	}

	public void setMsgDesc(String msgDesc) {
		this.msgDesc = msgDesc;
	}

	public String getPoDate() {
		return this.poDate;
	}

	public void setPoDate(String poDate) {
		this.poDate = poDate;
	}

	public BigDecimal getPoNo() {
		return this.poNo;
	}

	public void setPoNo(BigDecimal poNo) {
		this.poNo = poNo;
	}

	public Long getPoRevisionNo() {
		return this.poRevisionNo;
	}

	public void setPoRevisionNo(Long poRevisionNo) {
		this.poRevisionNo = poRevisionNo;
	}

	public BigDecimal getPoSeq() {
		return this.poSeq;
	}

	public void setPoSeq(BigDecimal poSeq) {
		this.poSeq = poSeq;
	}

	public String getPoSeries() {
		return this.poSeries;
	}

	public void setPoSeries(String poSeries) {
		this.poSeries = poSeries;
	}

	public String getPoType() {
		return this.poType;
	}

	public void setPoType(String poType) {
		this.poType = poType;
	}

	public String getPreparedBy() {
		return this.preparedBy;
	}

	public void setPreparedBy(String preparedBy) {
		this.preparedBy = preparedBy;
	}

	public String getProject() {
		return this.project;
	}

	public void setProject(String project) {
		this.project = project;
	}

	public String getPromisGpDocNo() {
		return this.promisGpDocNo;
	}

	public void setPromisGpDocNo(String promisGpDocNo) {
		this.promisGpDocNo = promisGpDocNo;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getSapCompanyCom() {
		return this.sapCompanyCode;
	}

	public void setSapCompanyCode(String sapCompanyCode) {
		this.sapCompanyCode = sapCompanyCode;
	}

	public String getSapPlantCode() {
		return this.sapPlantCode;
	}

	public void setSapPlantCode(String sapPlantCode) {
		this.sapPlantCode = sapPlantCode;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSupplierCode() {
		return this.supplierCode;
	}

	public void setSupplierCode(String supplierCode) {
		this.supplierCode = supplierCode;
	}

	public String getSupplierDoDate() {
		return this.supplierDoDate;
	}

	public void setSupplierDoDate(String supplierDoDate) {
		this.supplierDoDate = supplierDoDate;
	}

	public String getSupplierDoNo() {
		return this.supplierDoNo;
	}

	public void setSupplierDoNo(String supplierDoNo) {
		this.supplierDoNo = supplierDoNo;
	}

	public String getSyncCreatedby() {
		return this.syncCreatedby;
	}

	public void setSyncCreatedby(String syncCreatedby) {
		this.syncCreatedby = syncCreatedby;
	}

	public Date getSyncCreatedon() {
		return this.syncCreatedon;
	}

	public void setSyncCreatedon(Date syncCreatedon) {
		this.syncCreatedon = syncCreatedon;
	}

	public String getSyncUpdatedby() {
		return this.syncUpdatedby;
	}

	public void setSyncUpdatedby(String syncUpdatedby) {
		this.syncUpdatedby = syncUpdatedby;
	}

	public Date getSyncUpdatedon() {
		return this.syncUpdatedon;
	}

	public void setSyncUpdatedon(Date syncUpdatedon) {
		this.syncUpdatedon = syncUpdatedon;
	}

	public String getUpdatedBy() {
		return this.updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}

	public String getUpdatedOn() {
		return this.updatedOn;
	}

	public void setUpdatedOn(String updatedOn) {
		this.updatedOn = updatedOn;
	}

}